package com.yjb.demo.tdengine.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yjb.demo.tdengine.domain.entity.Meters;
import com.yjb.demo.tdengine.domain.form.MetersForm;
import com.yjb.demo.tdengine.mapper.MetersMapper;
import com.yjb.demo.tdengine.service.MetersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yinjinbiao
 * @create 2024/6/3 14:21
 */
@Service
public class MetersServiceImpl extends ServiceImpl<MetersMapper, Meters> implements MetersService {

    @Resource
    private MetersMapper metersMapper;

    @Override
    public void add(MetersForm metersForm) {
        metersMapper.add(metersForm);
    }

    @Override
    public Object getRealTimeData() {
        return metersMapper.getRealTimeData();
    }
}
